package com.peakmain.wanandroid.mymodule.base;

import com.peakmain.wanandroid.mymodule.component.ActivityComponent;
import com.peakmain.wanandroid.mymodule.component.DaggerActivityComponent;
import com.peakmain.wanandroid.netmodule.NetApplication;
import com.peakmain.wanandroid.netmodule.base.BaseContract;
import com.peakmain.wanandroid.netmodule.di.module.ActivityModule;
import com.peakmain.wanandroid.netmodule.permission.BasePermissionsActivity;

/**
 * author: peakmain
 * createdata：2019/7/25
 * mail: 2726449200@qq.com
 * desiption:
 */
public abstract class BaseMineActivity<T extends BaseContract.BasePresenter> extends BasePermissionsActivity<T> {
    public ActivityComponent mActivityComponent;

    @Override
    public void initActivityComponent() {
        mActivityComponent= DaggerActivityComponent.builder()
                .applicationComponent(((NetApplication)getApplication()).getApplicationComponent())
                .activityModule(new ActivityModule(this))
                .build();
    }
}
